
package com.lyf.viewapp.util;


import android.content.Context;
import android.util.Log;
import android.widget.Toast;


/**
 * 提示信息类
 * @author lyf
 */
public class LogUtils {

    private static final boolean IS_DEBUG = true;
    private static final String TAG = "lyf";

    public static void showToast(Context mContext, String showContent) {
        
        Toast.makeText(mContext, showContent, Toast.LENGTH_SHORT).show();
    }
    
    public static void showDebug(String debugContent) {
        if (IS_DEBUG) {
            Log.e("cdgas", debugContent);
        }
    }
    
    public static void debug(String msg) {
        Log.d(TAG, msg);
    }
    
    public static void info(String msg) {
        Log.i(TAG, msg);
    }
    
    public static void warn(String msg) {
        Log.w(TAG, msg);
    }
    
    public static void error(String msg) {
        Log.e(TAG, msg);
    }
    
    public static void error(String msg, Throwable e) {
        Log.e(TAG, msg, e);
    }
    
    public static void error(Exception e) {
        Log.e(TAG, e.getMessage(), e);
    }
    
}
